package com.fht.spring_boot_study.model.account.service;

import com.fht.spring_boot_study.model.account.entity.User;
import com.fht.spring_boot_study.model.common.entity.ResultEntity;
import com.fht.spring_boot_study.model.common.entity.SearchBean;
import com.github.pagehelper.PageInfo;

public interface UserService {
    User getUserByUserNameAndPassword(String userName, String password);

    ResultEntity<User> login(User user);

    void logout();

    ResultEntity<User> insertUser(User user);

    ResultEntity<User> updateUser(User user);

    User getUserById(int id);

    ResultEntity<Object> deleteUserById(int id);

    PageInfo<User> getUsersBySearchBean(SearchBean searchBean);

    User getUserByUserName(String userName);
}
